import { herinRequist } from "../http.js";
// 登录
const UseCar = {
	getUseCarList(data) {
		return herinRequist({ url: '/app/vehicle-apply', method: 'GET' , data});
	},
	postFrom(data) {
		return herinRequist({ url: '/app/vehicle-apply', method: 'POST', data,contentType:'application/json' });
	},
	getClass() {
		return herinRequist({ url: '/app/vehicle-type', method: 'GET',contentType:'application/json' });
	},
	getDetails(id) {
		return herinRequist({ url: '/app/vehicle-apply-detail', method: 'GET', data: { id }});
	},
	putRevocation(id) {
		return herinRequist({ url: '/app/vehicle-apply-cancel', method: 'POST', data: { id }, contentType:'application/json'});
	},
	putApproval(data) {
		return herinRequist({ url: '/app/vehicle-apply-audit', method: 'POST', data, contentType:'application/json'});
	},
	getVehicle(data) {
		return herinRequist({ url: '/app/vehicle-list', method: 'GET', data, contentType:'application/json'});
	},
	getDriver(data) {
		return herinRequist({ url: '/app/driver-list', method: 'GET', data, contentType:'application/json'});
	},
	getUserInfo() {
		return herinRequist({ url: '/app/user-info', method: 'GET', contentType:'application/json'});
	},
}

export default UseCar;
